<%@ page language = "java" import = "java.util.*" import = "edu.colorado.karl.login.AccountManager" %>

<%@ include file = "header.jspf" %>

<%
AccountManager am = AccountManager.getAccountManager();
LinkedList userList = am.getUsers();
Iterator iter = userList.iterator();
String nextName = "";

out.println("<html>");
out.println("<title>SoftCORE - Account Manager</title>");
out.println("<body><h1>Account Manager</h1>");
out.println("<BR>Administrators can create, delete and maintain accounts here.<BR><BR>");

out.println("<table border='1'>"); 
out.println("<tr><th>Username</th><th>Administrator</th><th>Remove Account</th></tr>");
out.println("<form action='acctmanager_action.jsp' method='post'>");

while(iter.hasNext())
{
  out.println("<tr><td align='center'>");
  nextName = (String)iter.next();
  out.println(nextName);
  out.println("</td><td align='center'>");
  out.println("<input type='checkbox' name='remove'>");
  out.println("</td><td align='center'>");
  out.println("<input type='checkbox' name='admin_change'>");
  out.println("</td></tr>");
}

out.println("</table>");

out.println("<BR><input type='submit' value='update'>");
out.println("<input type='submit' value='create_user'>");
out.println("<input type='submit' value='reset'>");
out.println("</form>");

out.println("</body></html>");

%>
